
package com.suarte.webapp.action;

import java.io.Serializable;
import java.util.List;
import org.appfuse.service.GenericManager;

/**
 * @date   Jan 04, 2011
 * @author Gcastillo
 */
public class EmployeeTypeList extends BasePage implements Serializable {
    private GenericManager employeeTypeManager;

    public void setEmployeeTypeManager(GenericManager employeeTypeManager) {
        this.employeeTypeManager = employeeTypeManager;
    }

    public EmployeeTypeList() {
        setSortColumn("id"); // sets the default sort column
    }

    public List getEmployeeTypes() {
        return sort(employeeTypeManager.getAll());
    }
}